Bin

Bin is a view that can hold only one child. The child can be either an View or Element.

class Aduct.Views.Bin.Bin(**kwargs)

Makes a bin based on given properties. Its CSS name is aduct-bin.

Parameters:**kwargs – The keyword arguments to be passed to Gtk.Bin from which Bin is made.
add_child(child)

Adds the child self.

Parameters:child (View or Element) – The child to be added to self.
Raises:ValueError – Raised when self already has a child.
get_props()

Gets the interface properties.

Returns:A dictionary with interface properties.
Return type:dict
remove_child(child)

Removes the given child.

Parameters:child (View or Element) – The child which has to be removed from self.
Raises:ValueError – Raised when child is not present in self.
replace_child(old_child, new_child)

Replaces the existing child with a new child.

Parameters:
  • old_child (View or Element) – The child present in self which has to be replaced.
  • new_child (View or Element) – The child that will replace the given old_child of self.
set_from_props(props)

Sets the interface from given properties.

Parameters:props (dict) – The dictionary containig properties of interface.
type

Used by autodoc_mock_imports.